package com.example.actflow.eum;

public enum ActionType {
    CLICK("点击"),
    BACK("返回"),
    SWIPE_UP("上滑"),
    SWIPE_DOWN("下滑"),
    SWIPE_LEFT("左滑"),
    SWIPE_RIGHT("右滑");

    public final String displayName;

    ActionType(String displayName) {
        this.displayName = displayName;
    }

    // 获取显示名称
    public String getDisplayName() {
        return displayName;
    }

    // 通过显示名称查找枚举
    public static ActionType fromDisplayName(String displayName) {
        for (ActionType type : values()) {
            if (type.displayName.equals(displayName)) {
                return type;
            }
        }
       return null;
    }

}